package com.bos.util;

import com.bos.util.enums.Bulan;

import java.util.Calendar;
import java.util.GregorianCalendar;

/**
 * Created by IntelliJ IDEA.
 * User: Latief
 * Date: 5/25/11
 * Time: 8:33 PM
 * To change this template use File | Settings | File Templates.
 */
public final class CalendarUtil {

    /**
     * Dapatkan Tanggal sekarang dalam format sepert --> 1 Januari 2010
     * @return
     */
    public static String getCalendarStringFormat(){
        Calendar calendar = new GregorianCalendar();
        String stringCal = calendar.get(Calendar.DATE) + " " + Bulan.valueOf(calendar.get(Calendar.MONTH)) + " " + calendar.get(Calendar.YEAR);

        return stringCal;
    }
}
